package io.renren;

import java.util.Arrays;

public class Q9 {
    String s = new String("fkh");
    char[] ch = {'a','b','c'};
    public void change(String str,char ch[]){
        str = "zhagnsan";
        ch[0]= 'd';
    }

    @Override
    public String toString() {
        return "Q9{" +
                "s='" + s + '\'' +
                ", ch=" + Arrays.toString(ch) +
                '}';
    }

    public static void main(String[] args) {
        Q9 q = new Q9();
        System.out.println("前："+q.toString());
        q.change(q.s,q.ch);
        System.out.println("后："+q.toString());
    }
}
